import request from '@/utils/request'

// 查询房屋租赁列表
export function listRoomRent(query) {
  return request({
    url: '/zlgl/roomRent/list',
    method: 'get',
    params: query
  })
}

// 查询房屋租赁详细
export function getRoomRent(id) {
  return request({
    url: '/zlgl/roomRent/' + id,
    method: 'get'
  })
}

// 新增房屋租赁
export function addRoomRent(data) {
  return request({
    url: '/zlgl/roomRent',
    method: 'post',
    data: data
  })
}

// 修改房屋租赁
export function updateRoomRent(data) {
  return request({
    url: '/zlgl/roomRent',
    method: 'put',
    data: data
  })
}

// 删除房屋租赁
export function delRoomRent(id) {
  return request({
    url: '/zlgl/roomRent/' + id,
    method: 'delete'
  })
}
